package co.fitstart.entity.courseware.fitnessgroup;

import com.demo2do.core.utils.Alias;

/**
 * 
 * @author dan
 *
 */
@Alias("coursewareMovementType")
public enum CoursewareMovementType {
	
	WARM_UP("warm_up", "热身运动"),
	
	FORMAL("formal", "正式运动"),
	
	STRETCH("stretch", "拉伸运动");
	
	private String alias;
	
	private String description;
	
	/**
	 * 
	 * @param alias
	 * @param description
	 */
	CoursewareMovementType(String alias, String description) {
		this.alias = alias;
		this.description = description;
	}
	
	/**
     * 
     * @param alias
     * @return
     */
    public static CoursewareMovementType aliasOf(String alias) {
        for (CoursewareMovementType batchCoursewareType : CoursewareMovementType.values()) {
            if (batchCoursewareType.getAlias().equalsIgnoreCase(alias)) {
                return batchCoursewareType;
            }
        }
        
        return null;
    }
    
	/**
	 * @return
	 */
	public String getAlias() {
		return alias;
	}
	
	/**
	 * @return
	 */
	public String getDescription() {
		return description;
	}
}
